<template>
  <div>
    <template v-if="num == 1">
      <templateSee></templateSee>
    </template>
    <template v-if="num ==2">
      <templateEdit></templateEdit>
    </template>
    <template v-if="num==3">
      <templateAdd></templateAdd>
    </template>
  </div>
</template>

<script>
  import {$aos} from "../../../store/state";
  import templateSee from './templateSee';
  import templateEdit from './templateEdit';
  import templateAdd from './template_Add';

  export default {
    name: "template_list",
    data() {
      return {
        num: null,
      }
    },
    created() {
      $aos.getItem('tabNum').then(res => {
        this.num = res;
      })
    },
    components: {
      templateSee,
      templateEdit,
      templateAdd
    }
  }
</script>

<style scoped>

</style>
